package com.example.cooldemo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        TextView tv_top_1 = findViewById(R.id.tv_top_1);
        TextView tv_top_2 = findViewById(R.id.tv_top_2);
        TextView tv_top_3 = findViewById(R.id.tv_top_3);
        TextView tv_top_4 = findViewById(R.id.tv_top_4);
        TextView tv_top_5 = findViewById(R.id.tv_top_5);
        TextView tv_top_6 = findViewById(R.id.tv_top_6);
        tv_top_1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, DefaultTopBaseActivity.class));
            }
        });
        tv_top_2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, TopBaseActivity.class));
            }
        });
        tv_top_3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, TopBaseHttpActivity.class));
            }
        });
        tv_top_4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, TopBaseHttp2Activity.class));
            }
        });
        tv_top_5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, TopBaseHttp3Activity.class));
            }
        });
        tv_top_6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, FragmentActivity.class));
            }
        });
    }
}
